package com.jlcindia;

public class Oopstest5 {

	public static void main(String[] args) {
	System.out.println("main started");
	new A().show();
	System.out.println("main completed");
	}
}
class A{
	void show(){
		System.out.println("**show() from  A class called**");
		display();
		System.out.println("**show() from  A class completed**");
	}
	void display(){
		System.out.println("**display() from  A class called**");
		new B().process();
		System.out.println("**display() from  A class completed**");	
	}
}
class B{
	void process(){
		System.out.println("**process() from  B class called**");
		new X().execute();
		System.out.println("**process() from  B class completed**");
	}
}
class X{
	void execute(){
		System.out.println("**execute() from x class called");
		int x=10;
		if(x==10)
			return;
		System.out.println("**execute() from x class completed");
	}
}
